import { post } from '@/utils/request'

// 查询默认吸粉欢迎词分页列表
export const getFansDefaultWelcomePageList = p => post(`/service-cop/b/fansWelcome/v1/fansDefaultList`, p)
// 查询默认吸粉欢迎词详情
export const viewFansDefaultWelcome = p => post(`/service-cop/b/fansWelcome/v1/fansDefaultView/${p.id}`, p, 'get')
// 添加默认吸粉欢迎词
export const addFansDefaultWelcome = p => post(`/service-cop/b/fansWelcome/v1/fansDefaultAdd`, p)
// 修改默认吸粉欢迎词
export const modifyFansDefaultWelcome = p => post(`/service-cop/b/fansWelcome/v1/fansDefaultModify`, p)
// 删除默认吸粉欢迎词
export const delFansDefaultWelcome = p => post(`/service-cop/b/fansWelcome/v1/fansDefaultDel/${p.id}`, p, 'get')
// 修改默认吸粉欢迎词首选项
export const setFansDefaultSelected = p => post(`/service-cop/b/fansWelcome/v1/fansDefaultSelected/${p.id}`, p)
// 删除默认吸粉欢迎词
export const changeFansDefaultWelcomeStatus = p => post(`/service-cop/b/fansWelcome/v1/fansDefaultChangeStatus/${p.id}/${p.status}`, p, 'get')

// 查询渠道吸粉欢迎词分页列表
export const getFansChannelWelcomePageList = p => post(`/service-cop/b/fansWelcome/v1/fansChannelList`, p)
// 查询渠道吸粉欢迎词详情
export const viewFansChannelWelcome = p => post(`/service-cop/b/fansWelcome/v1/fansChannelView/${p.id}`, p, 'get')
// 添加渠道吸粉欢迎词
export const addFansChannelWelcome = p => post(`/service-cop/b/fansWelcome/v1/fansChannelAdd`, p)
// 修改渠道吸粉欢迎词
export const modifyFansChannelWelcome = p => post(`/service-cop/b/fansWelcome/v1/fansChannelModify`, p)
// 删除渠道吸粉欢迎词
export const delFansChannelWelcome = p => post(`/service-cop/b/fansWelcome/v1/fansChannelDel/${p.id}`, p, 'get')
// 删除渠道吸粉欢迎词
export const changeFansChannelWelcomeStatus = p => post(`/service-cop/b/fansWelcome/v1/fansChannelChangeStatus/${p.id}/${p.status}`, p, 'get')
// 同步新客户欢迎词到企微
export const syncFansWelcomeToWxCp = p => post(`/service-cop/b/fansWelcome/v1/syncFansWelcomeToWxCp/${p.id}`, p)

// 查询渠道分页列表
export const getCopChannelPageList = p => post(`/service-cop/b/channel/v1/pageList`, p)
// 查询渠道列表
export const getCopChannelList = p => post(`/service-cop/b/channel/v1/list`, p)
// 查询渠道详情
export const viewCopChannel = p => post(`/service-cop/b/channel/v1/view/${p.id}`, p, 'get')
// 添加渠道
export const addCopChannel = p => post(`/service-cop/b/channel/v1/add`, p)
// 修改渠道
export const modifyCopChannel = p => post(`/service-cop/b/channel/v1/modify`, p)
// 删除渠道
export const delCopChannel = p => post(`/service-cop/b/channel/v1/del/${p.id}`, p, 'get')
// 删除渠道
export const changeCopChannelStatus = p => post(`/service-cop/b/channel/v1/changeStatus/${p.id}/${p.status}`, p, 'get')
